$OpenBSD: patch-Makefile_in,v 1.6 2014/08/14 06:52:59 ajacoutot Exp $

stop building when an error occurs, rather than just keep on with the
next subdir..

--- Makefile.in.orig	Tue Jul 29 18:31:22 2014
+++ Makefile.in	Thu Jul 31 16:14:57 2014
@@ -41,18 +41,18 @@ LIBTOOL_DEPS = @LIBTOOL_DEPS@
 #-------------------------------------------------------------------------
 
 all: Makefile
-	@for I in ${all_subdirs}; \
+	@set -e; for I in ${all_subdirs}; \
 	  do (cd $$I; echo "==>Entering directory `pwd`"; \
 	      $(MAKE) DESTDIR=$(DESTDIR) $@ || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
 			    echo ""; echo ""; false ) || false) || exit 1; \
 	done
 
 depend:
-	@for I in ${all_subdirs}; \
+	@set -e; for I in ${all_subdirs}; \
 	  do (cd $$I; echo "==>Entering directory `pwd`"; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1); done
 	
 bacula-fd: Makefile	   
-	@for I in ${fd_subdirs}; \
+	@set -e; for I in ${fd_subdirs}; \
 	  do (cd $$I; echo "==>Entering directory `pwd`"; \
 	      $(MAKE) DESTDIR=$(DESTDIR) all || (echo ""; echo ""; echo "   ====== Error in `pwd` ======"; \
 			    echo ""; echo ""; false ) || false) || exit 1; \
@@ -106,12 +106,6 @@ installdirs:
 	-if test ! -d $(DESTDIR)$(working_dir) ; then \
 	   $(MKDIR) $(DESTDIR)$(working_dir); \
 	   chmod 770 $(DESTDIR)$(working_dir); \
-	fi
-	-if test "x$(dir_user)" != "x" ; then \
-	   chown $(dir_user) $(DESTDIR)$(working_dir); \
-	fi
-	-if test "x$(dir_group)" != "x" ; then \
-	   chgrp $(dir_group) $(DESTDIR)$(working_dir); \
 	fi
 
 install: installdirs
